﻿using System;
using MongoDAO.Providers;
using MongoDAOTest.Entities;
using NUnit.Framework;
using MongoDAO.Extensions;

namespace MongoDAOTest.Extensions
{
    public class MongoDatabaseExtensionsTest : TestBase
    {
        [Test]
        public void DropCollection_Test()
        {
            database.DropCollection(typeof (Document));
            var collection = new MongoCollectionProvider(database).GetCollection<Document>();
            Assert.AreEqual(0, collection.Count());
        }

    }
}
